import request from '@/utils/request'

export function getAllHouse(size, page) {
  return request({
    url: '/house/all',
    method: 'get',
    params: {
      size: size,
      page: page
    }
  })
}

export function deleteHouse(houseID) {
  return request({
    url: '/house/delete',
    method: 'delete',
    params: {
      houseID: houseID
    }
  })
}

export function updateHouse(house) {
  return request({
    url: '/house/update',
    method: 'put',
    params: {
      houseId: house.houseId,
      houseAddrass: house.houseAddrass,
      houseResidentialQuarters: house.houseResidentialQuarters,
      houseNumber: house.houseNumber
    }
  })
}
